﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using T_Person.BaseRep.Interface;
using T_Person.Domain;

namespace T_Person.BaseRep.Impls
{
    public class PersonnelRepways : BaseWays<Personnel>,IPersonnelRep
    {
        public PersonnelRepways(Mycreate mycreate) : base(mycreate)
        {
        }

        public async Task<int> Add(Personnel model)
        {
            return await base.Add(model);
        }

        public async Task<int> Delete(Personnel model)
        {
            return await base.Delete(model);
        }

        public async Task<int> DeleteRange(List<Personnel> values)
        {
            return await base.DeleteRange(values);
        }

        public async Task<Personnel> GetAloneByid(int id)
        {
            return await base.GetAloneByid(id);
        }

        public async Task<Personnel> GetAloneByresult(Expression<Func<Personnel, bool>> result)
        {
            return await base.GetAloneByresult(result);
        }

        public async Task<IQueryable<Personnel>> Getvalues()
        {
            return await base.Getvalues();
        }

        public async Task<IQueryable<Personnel>> GetvaluesByResult(Expression<Func<Personnel, bool>> result)
        {
            return await base.GetvaluesByResult(result);
        }

        public async Task<int> Update(Personnel model)
        {
            return await base.Update(model);
        }

        public async Task<int> UpdateRange(List<Personnel> values)
        {
            return await base.UpdateRange(values);
        }
    }
}
